package demo4_1.dao;

import org.springframework.stereotype.Component;

@Component
public class UserDAOImpl implements IUserDAO {
    @Override
    public boolean findByUsername(String username) {
        System.out.println("UserDAO:开始查询用户："+username);
        if ("张三".equals(username)){
            return true;
        }
        System.out.println("UserDAO:未找到用户："+username);
        return false;
    }
}
